Set G_LOG_USE_STRUCTURED globally
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Nov 2020 20:47:44 +0000 (15:47 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 2 Nov 2020 02:23:35 +0000 (21:23 -0500)
It doesn't make much sense to set this in per-directory
meson files, since that makes use use different logging
facilities in different parts of the project. Set it
globally.

config.h.meson
gtk/css/meson.build

index 1968bb9cbeda18991e2a8068badd022cfdd9daba..549a6773791c6756bfcd77327d3fc264d4c48475 100644 (file)
@@ -1,8 +1,9 @@
-/* config.h.in.  Generated from configure.ac by autoheader.  */
-
 /* always defined to indicate that i18n is enabled */
 #define ENABLE_NLS 1
 
+/* Use structured logging */
+#define G_LOG_STRUCTURED 1
+
 /* The prefix for our gettext translation domains. */
 #mesondefine GETTEXT_PACKAGE
 
index 6b2456192866f2be63d270a767bfa51a8ec0262c..501411f917183e59f4b04433e72c961295359ff9 100644 (file)
@@ -47,7 +47,6 @@ libgtk_css = static_library('gtk_css',
                             c_args: [
                               '-DGTK_COMPILATION',
                               '-DG_LOG_DOMAIN="Gtk"',
-                              '-DG_LOG_STRUCTURED=1',
                             ] + common_cflags,
                             link_args: common_ldflags)